#!/bin/sh

dir='/root/v1'

echo ""
echo "begin www ................"
cd $dir/www
git reset --hard
git pull origin master
echo "www done !"
echo ""

echo ""
echo "begin api ................"
cd $dir/api
git reset --hard
git pull origin master
chmod -R 777 .
echo "api done !"
echo ""

